<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      p {
        height: 300px;
        width: 1000px;
        border: solid;
      }
    </style>
  </head>
  <body>
    <p>hello p1</p>
    <p>hello p2</p>
    <p>hello p3</p>
    <p>hello p4</p>
    <p>hello p5</p>
    <p>hello p6</p>
    <p>hello p7</p>
    <p>hello p8</p>
    <p>hello p9</p>
    <script>
      setTimeout(() => {
        // scrollBy(0, 200);
        scrollBy({
          left: 0,
          top: 200,
          behavior: "smooth",
        });
      }, 3000);

      setTimeout(() => {
        // scrollBy(0, 200);
        scrollBy({
          left: 0,
          top: 300,
          behavior: "smooth",
        });
      }, 5000);

      setTimeout(() => {
        // scrollBy(0, 200);
        scrollBy({
          left: 0,
          top: -300,
          behavior: "smooth",
        });
      }, 7000);
    </script>
  </body>
</html>
